<!doctype html>
<html lang="en" ng-app="detailApp">
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <link href="css/66.css" rel="stylesheet" type="text/css"/>

    <script src="lib/jquery-2.1.1.min.js" type="text/javascript"></script>
    <script src="lib/idangerous.swiper.js" type="text/javascript"></script>
    <script src="lib/angular/angular.min.js" type="text/javascript"></script>
    <script src="lib/angular/angular-route.min.js" type="text/javascript"></script>
    <script src="lib/angular/angular-resource.min.js" type="text/javascript"></script>
    <script src="js/detail.js"></script>
    <script src="js/filters.js"></script>
</head>
<body ng-controller="GoodsDetailCtrl" class="second-detail-body">
<div class="info-top ng-cloak">
    <img ng-src="{{headImg}}" ng-click="toPeronalPage(detail.createdBy.objId)" class="avatar">

    <p class="info-top-p"><span class="name" id="nickName" ng-bind="nickName" ng-click="toPeronalPage(detail.createdBy.objId)"></span><br/><span class="info-top-sub">{{detail.releaseDate | dateFormat}}发布在&nbsp;{{communityName}}</span>
    </p>
    <a href="javascript:;" ng-click="contact()" class="contact">私信TA</a>
</div>
<div class="wrapper second-detail noSelect commodity">
    <div class="swiper-container">

        <div class="saled-icon-w">
            <img ng-if="detail.isValid == false" src="images/d_deal.png"/>
            <img ng-if="detail.dealStatus == 1&&detail.isValid==true" src="images/d_deal.png"/>
            <img ng-if="detail.dealStatus != 1&&detail.saleNumber!=null&&detail.isValid==true" src="images/d_zhuan.png"/>

            <!--<img ng-if="detail.dealStatus == 1" src="images/d_deal.png"/>-->
            <!--<img ng-if="detail.dealStatus != 1&&detail.saleNumber!=null" src="images/d_zhuan.png"/>-->

            <!--<span class="vertical-l"></span>-->
            <!--<span class="saled-icon">已售</span>-->
        </div>

        <div class="swiper-wrapper">
        </div>
        <div class="pagination"></div>
        <p class="clearfix"><span class="fl">{{detail.browner}}个人看过这个{{itemTypeWord[detail.itemType]}}</span>
            <span class="fr"></span></p>
    </div>
    <div class="info">
        <p class="name" ng-bind="detail.title"></p>
        <span class="nowprice">¥<span ng-bind="detail.presentPrice"></span></span>
        <del class="preprice"><em>原价</em>:¥<span ng-bind="detail.originalPrice"></span></del>
        <p class="intro" ng-bind="detail.desc"></p>
        <ul class="btn-box clearfix">
            <li id="collection" ng-click="followup()"><img id="collectionImg" src="images/store.png" ><span id="collectionNum" ng-bind="collectionNum"></span></li>
            <li ng-click="share()"><img style="width:15px;heigth:15px;" src="images/share.png">分享</li>
            <li id="reply"><img src="images/debate.png">评论</li>
        </ul>
    </div>
  <!--  宝宝树66小区二次改造    add   zhangm  20170814  start-->
    <div class=""style="border-top:10px solid #EFEBEC;">
        <div class="testdiv" style="vertical-align:middle;margin-left: 15px;margin-top: 15px"><img style="width: 18px;height: 18px;vertical-align:middle;" src="images/sigh.png"><span style="display: inline-block;margin-left: 5px;font-size: 14px;font-weight: bold">风险提示</span> </div>
            <p style="padding:14px 15px;font-size: 12px">
                宝宝树66小区提醒您：<br>
                闲置交易均由买家卖家在线下完成，请特别注意：<br>
                1、请一定选择同城面对面交易，不要相信任何人以任何理由要求您以微信、支付宝等方式提前付款，以免在交易过程中被骗，导致钱款损失。<br>
                2、请一定仔细检查商品，避免购买后因不能向卖家要求退货退款，产生损失。<br>
            </p>
    </div>
    <!--  宝宝树66小区二次改造    add   zhangm  20170814   end-->
    <div class="line"></div>
    <ul class="comment" style="background:#fff" >

    </ul>
    <p class="loadingMore"></p>

</div>

<div class="comment-form">
    <input id="replyText" type="text" class="text" placeholder="说点什么吧..." maxlength="100" ng-model="replyDesc" ng-blur="clearReplyTo()"><input id="submit" class="button" type="button"
                                                                                       ng-click="reply()" ng-mouseover="moveClearReplyTo()" ng-mouseout="addClearReplyTo()" value="发送"/>
</div>
<div class="pop loading">
    <span class="loading-con"><img src="images/loading.gif"></span>
</div>
<div class="pop delete-comment-pop">
    <span class="loading-con" onselectstart="return false">点击删除</span>
</div>
<div class="loading-pop">
    <img src="images/loading.gif" class="loading-img">
</div>
</body>
</html>


<script>
    //	//轮播图片
    //	function swipter(){
    //	}
    //	swipter();

    $('.icon-saled').on('touchstart', function () {
        $(this).hide();
    });
    $('.btn-box li').eq(2).on('click', function () {
        $('.text').focus();
//        $('.loading').show();
    });

    $('.text').keyup(function () {
        if ($(this).val() != '') {
            $('.button').css('color', '#000');
        } else {
            $('.button').css('color', '#999');
        }
    })

    function checkContent(){
        if ($('#replyText').val() != '') {
            $('.button').css('color', '#000');
        } else {
            $('.button').css('color', '#999');
        }
    }


    setInterval("checkContent()", 1000);

</script>